/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2024-04-25 16:40:05
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-05-06 15:35:15
 * @FilePath: \cxl-driving-training\src\apis\wxMini\index.ts
 */
import axios from '../../axios/index'

//头像列表
export const avatarImageList = (current = 1, size = 50) => {
    return axios({
        method: 'get',
        url: '/api/system/avatarResource/getPageList',
        params: { current, size }
    })
}

//删除头像
export const avatarImageDelete = (data: string[]) => {
    return axios({
        method: 'post',
        url: '/api/system/avatarResource/remove',
        data
    })
}

//获取客服地址
export const getCustomerServiceUrl = () => {
    return axios({
        method: 'get',
        url: '/api/user/wxcp/getCustomerUrl'
    })
}

//修改客服地址
export const updateCustomerServiceUrl = (data: { url: string }) => {
    return axios({
        method: 'post',
        url: '/api/user/wxcp/getCustomerUrl',
        data
    })
}
